﻿#include "SubMenu.h"


SubMenu::SubMenu(QObject *parent) : QObject(parent)
{

}

bool SubMenu::wifi() const
{
    return m_wifi;
}

void SubMenu::setWifi(bool newWifi)
{
    if (m_wifi == newWifi)
        return;
    m_wifi = newWifi;
    emit wifiChanged();
}

const QString &SubMenu::path() const
{
    return m_path;
}

void SubMenu::setPath(const QString &newPath)
{
    if (m_path == newPath)
        return;
    m_path = newPath;
    emit pathChanged();
}

bool SubMenu::btnCheck() const
{
    return m_btnCheck;
}

void SubMenu::setBtnCheck(bool newBtnCheck)
{
    if (m_btnCheck == newBtnCheck)
        return;
    m_btnCheck = newBtnCheck;
    emit btnCheckChanged();
}

int SubMenu::comboboxIndex() const
{
    return m_comboboxIndex;
}

void SubMenu::setComboboxIndex(int newComboboxIndex)
{
    if (m_comboboxIndex == newComboboxIndex)
        return;
    m_comboboxIndex = newComboboxIndex;
    emit comboboxIndexChanged();
}
